//
//  AudioPlayerHandle.h
//  AudioBook_A
//
//  Created by Sansan on 15/4/13.
//  Copyright (c) 2015年 Sansan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TracksModel.h"

@interface AudioPlayerHandle : NSObject

+ (instancetype)shareHandle;

@property (nonatomic, retain) UIView *AudioPlayer;
@property (nonatomic, retain) UIImageView *AudioImageView;
@property (nonatomic, retain) UIButton *leftButton;
@property (nonatomic, retain) UIButton *rightButton;
@property (nonatomic, retain) UIButton *playButton;
@property (nonatomic, retain) UILabel *soundsTitle;
@property (nonatomic, retain) UISlider *progressSlider;
@property (nonatomic, retain) UILabel *timeLabel;
@property (nonatomic, retain) NSTimer *audioTimer;
@property (nonatomic, assign) CGFloat duration;
@property (nonatomic, retain) NSMutableArray *listArray;
@property (nonatomic, copy) NSString *currentUrl;
@property (nonatomic, retain) NSMutableArray *audioArray;
@property (nonatomic, assign) NSInteger audioIndex;
@property (nonatomic, assign) BOOL isCellSelected;

@property (nonatomic, retain) AudioStreamer *audioStream;

- (void)createStreamer:(NSString *)url duration:(CGFloat)duration;
- (void)pauseStreamer;
- (void)destroyStreamer;




@end
